<template>
  <div :class="{ bgred: $attrs.warn }">
    <div class="lineb-page-box">
      <div class="left1">
        <div class="line1">
          <div class="circle1"></div>
        </div>
      </div>
      <div class="right1">
        <div class="right_top">
          <div class="date1">2020-03-07</div>
          <div class="time1">15:33:33</div>
        </div>
        <div class="right_bottom">南山区西丽山水库桃花林</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {};
</script>
<style lang="scss" scoped>
.lineb-page-box {
  font-size: 16px;
  display: flex;
  position: relative;
  align-items: center;
}
.bgred {
  width: 250px;
  background-color: rgba(246, 64, 44, 0.6);
  .right_top {
    background-color: rgba(246, 64, 44, 0.6) !important;
  }
}
.left1 {
  position: absolute;
  height: 100%;
}
.right1 {
  margin: 10px;
  .right_top {
    background-color: #01b8d7;
    margin-bottom: 2px;
    padding: 2px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
  }
  .right_bottom {
    padding: 2px 25px;
    text-align: center;
  }
}
.line1 {
  height: 100%;
  border-left: 2px solid #e4e7ed;
  .circle1 {
    width: 11px;
    height: 11px;
    border-radius: 11px;
    background-color: red;
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto 0;
  }
}
</style>
